package com.cskaoyan.mapper;

import com.cskaoyan.bean.DashBoard;
import com.cskaoyan.bean.User;
import com.cskaoyan.bean.UserExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
//    @Select("select password from j18_user_t where username = #{username}")
//    List<String> selectPasswordByName(@Param("username") String username);

    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);


    Integer orderTotal();

    Integer goodsTotal();

    Integer productTotal();

    Integer userTotal();

    List<User> selectCondition(@Param("example") UserExample example, @Param("fields") String fields);
}